
package com.srwl.mytx.domain;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Transient;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class Notify {
    @Id
    private String id;
    private String content;
    private Integer status;
    private Integer type;
    //发信息方的用户信息,虽然有user 表，但是不用关联的方法，保存用户信息，因为有些消息用不着保存用户信息，比如对方拒绝好友请求的消息，所以直接在 notify 冗余用户字段，来的更方便
    private String uId;
    private String nick;
    private String avatar;
    private String extraInfo;//附加信息，约定存：JSONString,比如添加我好友的，曾经是我的好友，这样的好友请求中，会携带 对方和我的曾经的联系人信息
    private Date created;
    @Transient
    private Object data;//附加信息
    @Transient
    private String groupId;
    @Transient
    private String groupName;
    @Transient
    private String groupInviter;
    public Notify() {
    }

    @Keep
    public Notify(String id, String content, Integer status, Integer type, String uId, String nick,
            String avatar, String extraInfo, Date created) {
        this.id = id;
        this.content = content;
        this.status = status;
        this.type = type;
        this.uId = uId;
        this.nick = nick;
        this.avatar = avatar;
        this.extraInfo = extraInfo;
        this.created = created;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getId() {

        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }


    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setGroupInviter(String inviter) {
        groupInviter = inviter;
    }

    public String getGroupInviter() {
        return groupInviter;
    }


    public String getUId() {
        return this.uId;
    }

    public void setUId(String uId) {
        this.uId = uId;
    }

    public String getExtraInfo() {
        return this.extraInfo;
    }

    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }


}



